<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
function CheckTopLogin(){
  var taget_obj = document.getElementById('_userlogintop');
  myajax = new DedeAjax(taget_obj,false,false,'','','');
  myajax.SendGet2("{dede:global.cfg_cmspath/}/member/ajax_logintop.php");
  DedeXHTTP = null;
}
$(document).ready(function(){
	$(".search p label").each(function(){
		$(this).bind("click",function(){
			$(this).parent().find("label").removeClass("on");
			$(this).addClass("on");
			$("#search-type").val($(this).attr('id'));
		});

	});
	
	var search_type = "{dede:global name='searchtype' /}";
	if(search_type == ''){
		var search_type = 'title';
	};
	
	$(".search p lable").removeClass("on");
	$(".search p #"+search_type).addClass("on");

});
</script>
<!-- header -->
    <div class="pngfix header">
        <h1 class="logo"><a href="/" title="返回'图片处理教程网'首页"><img src="{dede:global.cfg_templets_skin/}/img/logo.png" height="47" width="128" alt="图片处理教程网" /></a></h1>
        <div class="topbar">
            <span id="_userlogintop">
                <a href="/member/index_do.php?fmdo=user&dopost=regnew">免费注册</a>┊
                <a href="/member/login.php">登录网站</a>
            </span>┊
            <script language="javascript" type="text/javascript">CheckTopLogin();</script>
            <a href="/help.htm">帮助中心</a>┊
            <a href="/rssfeed.xml" target="_blank" class="rss">订阅RSS</a>
        </div>
        <div class="navi" id="navi">
            <ul>
                <li class="home"><a class="home" href="/">首页</a></li>
                {dede:channel type='top' row='3' currentstyle="<li class='on'><a href='~typelink~'>~typename~<img src='/templets/23ps/img/icon-submenu.png' /></a><ul class='submenu-box'>~sonlist~</ul></li>"}
		      	<li class="submenu"><a href="[field:typedir/]/">[field:typename/]<img style="margin: -2px 0 0 5px;position: absolute;" src="/templets/23ps/img/icon-submenu.png" /></a>
                    <ul class="submenu-box">
                    [field:id runphp='yes']
                    $dsql = new dedesql();
                    $sql = "select typename,typedir from ps_arctype where topid=@me order by sortrank";
                    $dsql->Execute('me',$sql);
                    $list = "";
                    while($arr = $dsql->GetArray('me'))
		            {
		                $list .= "<li><a href='{$arr['typedir']}/'>{$arr['typename']}</a></li>";
		            }
                    @me = $list;
                    [/field:id]
                    </ul>
                </li>
		      	{/dede:channel}

                <li 
					{dede:global.tid runphp='yes'}
					$list = '';
					$tid = @me;
                    if($tid == 71){
                        $list = 'class="on1"';
                    }
					@me = $list;
					{/dede:global.tid}
                ><a href="/xxgy/">学习感言</a></li>
                <li><a href="http://www.laifu.net/">PS论坛</a></li>
            </ul>
            <strong><a href="/member/article_add.php">有偿投稿</a></strong>
        </div>
        <div class="announcement" id="announcement">
            {dede:arclist row='10' typeid='61' orderby='id' titlelen='60' infolen='1000'}
                <p>[field:textlink/]</p>
            {/dede:arclist}
        </div>
        <div class="search">
            <p>
                <label id="title">按标题</label>
                <label id="author">按作者</label>
                <!--label id="teacher">按老师</label-->
            </p>
            <div class="form">
            <form action="/plus/search.php" method="post"> 
                <input class="text" type="text" id="search-keywords" name="q" value="{dede:global name='keyword' function='RemoveXSS(@me)'/}" />
                <input type="hidden" id="search-type" value="{dede:global name='searchtype' /}" name="searchtype" />
                <input class="submit" type="submit" value="" id="search-submit" />
            </form>
            </div>
        </div>
    </div>
    <!-- header end -->